package com.dao;

import java.util.List;

import com.entity.Device;

public interface DeviceDao {
	public List<Device> findAllDevice();
	public List<Device> findDeviceBySubstation(String substationNo);
	public List<Device> findDeviceByModel(String deviceModel);
	public List<Device> findDeviceByNorm(String deviceNorm);
	public List<Device> findDeviceByTypeAndNorm(String deviceType,String deviceNorm);
	public Device FindDeviceByID(int deviceID);
	public Device FindDeviceByNo(String deviceNo);
	public boolean addDevice(Device device);
    public boolean deleteDevice(Device device);
    public boolean updateDevice(Device device);
    public List<Device> findDeviceByNorm(String deviceType, String deviceNorm);
    public List<Device> findDeviceByUnit(String unitNo,String substationNo);
    public List<Device> findAuditingDevice();
    public boolean checkDeviceNoAvailable(String deviceNo);
    public List<Device> findDeviceNotInUnitInterval();
    public List<Device> findDeviceBySubstationNotInUnitInterval(String substationNo);
    public List<Device> deviceDetails(String unitNo,String substationNo);
    public void deleteDevice(int deviceId);
}
